<?php
declare(strict_types=1);
namespace Field;

class __CLASSNAME__Const
{
    public const pk='$pk$';
    public const index=[$ConstIndex$];
	public const fields=[$ConstFields$];
	public const comment=[$ConstComment$];
	$ConstKV$
}

class __CLASSNAME__Columns
{
$ConstK$
	public function toArray():array
	{
		return [
$ConstArray$        ];
	}
}

class __CLASSNAME__Row
{
	public __CLASSNAME__Columns $data;
	public function toArray():array
	{
		return $this->data->toArray();
    }

    public function getValue(string $field):string|int|null
    {
        return match ($field){
        $RowKV$ default=>null
        };
    }

    public function __construct(array $data)
    {
        $this->data = new __CLASSNAME__Columns();
        $RowVK$
    }
}
?>